-- GENERATED SPELL FOR [Mirkfallon Dryad] --


function spell0_4061(pUnit, Event) --@Slowing Poison,n/a--
pUnit:FullCastSpellOnTarget(7992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4061', 26000, 1)
end

function spell1_4061(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4061', 500, 1)
end

function Sorts_4061(pUnit, Event)
local choix_sorts_4061 = math.random(0, 1)
if choix_sorts_4061 == 0 then
pUnit:RegisterEvent('spell0_4061', 1, 1)
end
if choix_sorts_4061 == 1 then
pUnit:RegisterEvent('spell1_4061', 1, 1)
end
end

function mob4061_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4061', math.random(1500, 3000), 1)
end

function mob4061_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4061_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4061_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4061, 1, 'mob4061_Action')
RegisterUnitEvent(4061, 2, 'mob4061_Leave')
RegisterUnitEvent(4061, 3, 'mob4061_Kill')
RegisterUnitEvent(4061, 4, 'mob4061_Die')
